package org.dubbo.live.user.interfaces.provider.rpc;

import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.dubbo.live.user.constants.UserTagsEnum;
import org.dubbo.live.user.dto.UserDTO;
import org.dubbo.live.user.interfaces.IUserRpc;
import org.dubbo.live.user.interfaces.IUserTagRpc;
import org.dubbo.live.user.interfaces.provider.service.IUserService;
import org.dubbo.live.user.interfaces.provider.service.IUserTagService;

import java.util.List;
import java.util.Map;

/**
 * @Description: 对外 接口的暴露
 * @Author: 张广焱
 * @Date: 2024-03-24 6:53
 */
@DubboService
public class UserTagRpcImpl implements IUserTagRpc {

    @Resource
    private IUserTagService userTagService;

    @Override
    public boolean setTag(Long userId, UserTagsEnum userTagsEnum) {
        return userTagService.setTag(userId, userTagsEnum);
    }

    @Override
    public boolean cancelTag(Long userId, UserTagsEnum userTagsEnum) {
        return userTagService.cancelTag(userId, userTagsEnum);
    }

    @Override
    public boolean containTag(Long userId, UserTagsEnum userTagsEnum) {
        return userTagService.containTag(userId, userTagsEnum);
    }
}